<ol class="breadcrumb" id="breadcrumb">
    <li><a href="<?= PATH_URL ?>">Trang chủ</a></li>
    <?php
    if ($category != '') {
        ?>
        <li><a href="<?= PATH_URL . $category->slug.'.html' ?>"><?= $category->name ?></a></li>
    <?php
    }
    ?>
    <li><a href="<?= PATH_URL . $detail->slug_c.'.html' ?>"><?= $detail->name ?></a></li>
    <li class="active"><?= $detail->title ?></li>
</ol>
<div class="clearfix"></div>
<div class="col-sm-9" id="main-detail">
    <div class="row">
        <div class="col-sm-4 info-detail">
            <div class="img_">
                <img
                    src="<?= PATH_URL . DIR_UPLOAD_BOOKS . $detail->image ?>"
                    alt="<?= $detail->title ?>"/>
            </div>

            <div class="info_ clearfix">
                <p><span class="l">Thể loại:</span> <span><a
                            href="<?= PATH_URL . typeBook($detail->type) ?>"><?= typeBook($detail->type, 'name') ?></a></span>
                </p>

                <p><span class="l">Danh mục:</span> <span><a href="<?= PATH_URL . $detail->slug_c ?>"
                                                             class="dm"><?= $detail->name ?></a></span></p>

                <p><span class="l">Người đăng:</span> <span><a
                            href="<?= PATH_URL . 'user/' . $detail->username ?>"><?= $detail->username ?></a></span></p>
            </div>
            <div class="action">
                <a href="" class="download btn btn-default"><i class="fa fa-download"></i> Tải về</a>
                <a href="" class="love btn btn-default"><i class="fa fa-heart"></i> Yêu thích</a>
            </div>
            <div class="row">

                <div class="col-sm-12" id="tag">

                    <div class="li_tags">
                        <span><i class="fa fa-tags"></i>Tags:</span>
                        <a href="" class="btn btn-default btn-xs">Sách hay</a> <a href=""
                                                                                  class="btn btn-default btn-xs">văn
                            hóa</a> <a href="" class="btn btn-default btn-xs">luận văn</a> <a
                            class="btn btn-default btn-xs" href="">văn
                            học</a></div>
                </div>

            </div>
        </div>
        <div class="col-sm-8" id="detail-content">
            <h1><i class="fa fa-bookmark"></i> <?= $detail->title ?></h1>

            <div class="date">
                <span>Cập nhập: </span><i><?= date('d-m-Y H:i:s', strtotime($detail->created)) ?></i>
            </div>
            <div class="social">
                <div class="g-plusone" data-size="medium" data-annotation="inline" data-width="300"></div>
                <iframe
                    src="//www.facebook.com/plugins/like.php?href=<?= getCurrentUrl() ?>&amp;width&amp;layout=standard&amp;action=like&amp;show_faces=true&amp;share=true&amp;height=80&amp;appId=258227564328716"
                    scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:30px;"
                    allowTransparency="true"></iframe>

            </div>
            <div class="content_detail clearfix">
                <div class="content_book_des">
                    <?= $detail->content ?>
                </div>
                <span class="see_more_ less_">Thu lại</span>
                <span class="see_more_ more_">Xem thêm</span>
            </div>
            <?php
            if ($other):
                ?>
                <div class="other-book clearfix">
                    <h2><i class="fa fa-book"></i> Ebook có lên quan</h2>

                    <div class="content-o-b">
                        <ul>
                            <?php foreach ($other as $o1): ?>
                                <li>
                                    <a href="<?= PATH_URL . typeBook($o1->type) . '/' . $o1->slug . '-' . $o1->id . '.html' ?>"><?= $o1->title ?></a>
                                </li>
                            <?php endforeach; ?>
                        </ul>

                    </div>
                </div>
            <?php endif; ?>
            <div class="comment-facebook clearfix">
                <div class="fb-comments" data-href="<?= current_url() ?>" data-numposts="5"
                     data-colorscheme="light"></div>
            </div>
        </div>
    </div>
</div>
<?= modules::run('books/_blockOther') ?>